package com.task.src.service.Impl;

import com.task.src.dto.MyTask;
import com.task.src.mapper.MyTaskMapper;
import com.task.src.service.MyTaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MyTaskServiceImpl implements MyTaskService {

    @Resource
    private MyTaskMapper myTaskMapper;

    @Override
    public List<MyTask> selectMyT(int userid) {
        return myTaskMapper.selectMyT(userid);
    }

    @Override
    public int insertMyTask(int userid, int taskid) {
        return myTaskMapper.insertMyTask(userid,taskid);
    }

    @Override
    public List<MyTask> selectMyWc(int uid) {
        return myTaskMapper.selectMyWc(uid);
    }
}
